package com.rjhch.bigDataCluterHelp.hbaseHelp;

/**
 * region信息实体类
 */
public class RegionEntity implements Cloneable {
    /**
     * region名称
     */
    private String regionName;
    /**
     * region所属表名
     */
    private String tableName;
    /**
     * region所在regionServer名称
     */
    private String regionServerName;
    /**
     * region将要迁移到的regionServer名称
     */
    private String regionToServerName;
    /**
     * region是否需要迁移
     */
    private boolean move;

    public RegionEntity(String regionName, String tableName, String regionServerName) {
        this.regionName = regionName;
        this.tableName = tableName;
        this.regionServerName = regionServerName;
    }

    public String getRegionName() {
        return regionName;
    }

    public String getTableName() {
        return tableName;
    }

    public String getRegionServerName() {
        return regionServerName;
    }

    public String getRegionToServerName() {
        return regionToServerName;
    }

    public void setRegionToServerName(String regionToServerName) {
        this.regionToServerName = regionToServerName;
    }

    public Boolean getMove() {
        return move;
    }

    public void setMove(Boolean move) {
        this.move = move;
    }

    @Override
    public String toString() {
        return "RegionEntity{" +
                "regionName='" + regionName + '\'' +
                ", tableName='" + tableName + '\'' +
                ", regionServerName='" + regionServerName + '\'' +
                ", regionToServerName='" + regionToServerName + '\'' +
                ", move=" + move +
                '}';
    }

    @Override
    public RegionEntity clone() throws CloneNotSupportedException{
        return  (RegionEntity)super.clone();
    }

}
